name "pixiv_down"
description "A CLI tool to download from pixiv.net"
version "2024.12.0"
authors "mio <stigma@disroot.org>"
copyright "Copyright (C) 2023-2024, mio"
homepage "https://yume-neru.neocities.org/p/pixiv_down.html"
license "GPL-3.0-only"
targetType "executable"
targetPath "source"
mainSourceFile "source/app/app.d"

preBuildCommands "$DUB --single prebuild.d -- -vcs:source/app/vcs_tag.d.in -config:source/app/config.d.in"

configuration "macOS" {
	platforms "osx"
	
	dflags "-L-framework" "-LFoundation" \
		"-L-framework" "-LImageIO" platform="dmd"
}

# No default converter. Plugins will still work.
configuration "no-converter" {
	versions "PD_NO_CONVERTER"
}

# Compatibility names for when we were linking with GraphicsMagick
configuration "magick" {
	platforms "posix"
}

configuration "Q16" {
	platforms "posix"
}

configuration "Q8" {
	platforms "posix"
}

configuration "Q32" {
	platforms "posix"
}
